package com.xtx.mapper;

import com.github.pagehelper.Page;
import com.xtx.dto.OrderPageDto;
import com.xtx.entity.OrderDetail;
import com.xtx.vo.OrderVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface OrderMapper {
    Page<OrderVo> page(@Param("dto") OrderPageDto orderPageDto,@Param("currentId") Long currentId);

    @Select("select * from order_detail where order_id = #{orderId}")
    List<OrderDetail> getOrderDetailsByOrderId(String orderId);
}
